package com.delivery.www.po;

import com.delivery.www.util.AnnotationUtils;

/**
 * 订单表
 * @author 12970
 */
@AnnotationUtils.Table("order")
public class Order {
    @AnnotationUtils.Field(columnName = "order_id")
    private Integer orderId;
    @AnnotationUtils.Field(columnName = "user_id")
    private Integer userId;
    @AnnotationUtils.Field(columnName = "store_id")
    private Integer storeId;
    @AnnotationUtils.Field(columnName = "dish_id")
    private Integer dishId;
    @AnnotationUtils.Field(columnName = "status")
    private Integer status;
    @AnnotationUtils.Field(columnName = "money")
    private Float money;
    /**
     * 获取用户名
     */
    @AnnotationUtils.Field(columnName = "user_name")
    private String userName;
    /**
     * 店铺名
     */
    @AnnotationUtils.Field(columnName = "store_name")
    private String storeName;
    /**
     * 菜品名
     */
    @AnnotationUtils.Field(columnName = "dish_name")
    private String dishName;

    public Order() {
    }

    public Order(Integer orderId, Integer userId, Integer storeId, Integer dishId, Integer status, Float money, String userName, String storeName) {
        this.orderId = orderId;
        this.userId = userId;
        this.storeId = storeId;
        this.dishId = dishId;
        this.status = status;
        this.money = money;
        this.userName = userName;
        this.storeName = storeName;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public Integer getDishId() {
        return dishId;
    }

    public void setDishId(Integer dishId) {
        this.dishId = dishId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Float getMoney() {
        return money;
    }

    public void setMoney(Float money) {
        this.money = money;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getDishName() {
        return dishName;
    }

    public void setDishName(String dishName) {
        this.dishName = dishName;
    }
}
